package com.gary.mongo.service;

import com.gary.mongo.dao.DoneMsgDAO;
import com.gary.mongo.po.Comment;
import com.gary.mongo.po.DoneMsg;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author peng_rui
 * @date 2022/6/1
 */
@Service
public class DoneMsgService {
    @Resource
    private DoneMsgDAO doneMsgDAO;


    public List<DoneMsg> findAll() {
        Comment comment = new Comment();
        Comment comment1 = new Comment();
        System.out.println(comment == comment1);
        List<DoneMsg> all = doneMsgDAO.findAll();
        return all;
    }
}
